const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  /* token的快捷访问 */
  token: state => state.user.token,
  /* 用户信息名称的快捷访问 */
  name: state => state.user.userInfo.username,
  // 获取用户id
  userId: state => state.user.userInfo.userId,
  // 获取用户的头像
  staffPhoto:state => state.user.userInfo.staffPhoto,
  // 公司编号的快捷访问
  companyId: state => state.user.userInfo.companyId,
  // 创建快捷导出动静态页面的元苏快捷键
  routes:state => state.permission.routes,

}
export default getters
